import java.util.Iterator;
import java.util.ArrayList;

public class RemoveTest {

  public static void main(String[] args) {

    ArrayList<String> array = new ArrayList<String>();
    array.add("Hello");
    array.add(" ");
    array.add("World");

    for (String element : array) {
      System.out.print(element);
    }

    System.out.println();

    Iterator<String> iterator = array.iterator();
    iterator.next();
    iterator.remove();

    for (String element : array) {
      System.out.print(element);
    }
    System.out.println();
  }
}
